#include "platform_transmit.h"
#include "stdint.h"


uint32_t euro_data_pack(uint8_t *buf,float *euro)
{
    union 
    {
        uint8_t u8_[4];
        float float_;
    }float2u8;
    uint32_t offset = 0;
    buf[offset++] = 0xAB;  
    float2u8.float_ = euro[2];
    memcpy(buf+offset,float2u8.u8_,4);
    offset+=4;
    float2u8.float_ = euro[1];
    memcpy(buf+offset,float2u8.u8_,4);
    offset+=4;
    float2u8.float_ = euro[0];
    memcpy(buf+offset,float2u8.u8_,4);    
    offset+=4;
    return offset;
}


